<admintpl file="header" />
</head>
<body>
	<div class="wrap js-check-wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a>家族列表</a></li>
			<li ><a href="{:U('Family/add')}">新增家族</a></li>
		</ul>
		<form class="well form-search" method="post" action="{:U('Family/index')}">

			关键字： 
			<input type="text" name="keyword" style="width: 200px;" value="{$formget.keyword}" placeholder="请输入家族名称">
			<input type="submit" class="btn btn-primary" value="搜索">
		</form>		
		<form method="post" class="js-ajax-form" >
			<div class="table-actions">

			</div>
			<table class="table table-hover table-bordered">
				<thead>
					<tr>
						<th align="center">ID</th>
						<th>家族名</th>
						<th>家族人数</th>
						<th>族长</th>
						<th>主播比例</th>
						<th>族长比例</th>
						<th>更新时间</th>
						<th align="center">{:L('ACTIONS')}</th>
					</tr>
				</thead>
				<tbody>

					<foreach name="users" item="vo">
					<tr>
						<td align="center">{$vo.id}</td>
						<td>{$vo.name}</td>
						<td>{$vo.nums}</td>
						<td>{$vo.zuzhang}</td>
						<td>{$vo.zhu_bili}</td>
						<td>{$vo.tou_bili}</td>
						<td>{$vo.uptime|date="Y-m-d H:i:s",###}</td>
						<td align="center">
							<a href="{:U('Family/memberinfo',array('id'=>$vo['id']))}">添加成员</a> |
							<a href="{:U('Family/selmember',array('id'=>$vo['id']))}">查看成员</a> |
								<a href="{:U('Family/edit',array('id'=>$vo['id']))}">编辑</a> |
								<a href="{:U('Family/delete',array('id'=>$vo['id']))}" class="js-ajax-dialog-btn" data-msg="您确定要删除此用户吗？">删除</a>
						</td>
					</tr>
					</foreach>
				</tbody>
			</table>
			<div class="pagination">{$page}</div>
		</form>
	</div>
 <script src="__PUBLIC__/js/common.js"></script>
</body>
</html>